<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>边框和悬浮</title>
    <style>
        .main {
            margin: auto; 
            text-align: center; 
            border-top: 3px solid rgb(224, 125, 11);
            border-bottom: 1px solid rgb(14, 13, 13); 
            padding: 10px 10px; 
        }
        .item {
            display: inline; 
            margin: 0;
            padding: 10px 10px; 
            border: 1px solid rgba(204,204,204,0);

        }
        .item:hover {
            background-color: rgb(171, 173, 178); 
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="item" >首页</div>
        <div class="item" >手机新浪网</div>
        <div class="item" >移动客户端</div>
        <div class="item" >博客</div>
        <div class="item" >微博</div>
        <div class="item" >关注我</div>
    </div>
</body>
</html>
